import java.util.Random;
import java.util.Scanner;

public class Test4 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入班级人数:");
        int count = scanner.nextInt();
        int[] arr = new int[count];
        int bujige = 0;
        int sum = 0;
        for (int i = 0; i < arr.length; i++) {
            Random random = new Random();
            int num = random.nextInt(101)+0;
            arr[i] = num;
            if (arr[i]<60){
                bujige++;
            }
        }
        for (int i = 0; i < arr.length; i++) {
            sum += arr[i];
        }
        int avg = sum/arr.length;
        System.out.println("不及格人数:"+bujige);
        System.out.println("班级平均分:"+avg);
    }
}
